/**
 * @author 魏婷
 * @date  2019-08-15
 * @description 常见 MIME 类型描述，以及在本项目中所对应的图标
 */

// TODO: 加入对应显示图标

const types = [
  {
    type: 'image/gif',
    icon: '',
    extension: [ 'gif' ]
  },
  {
    type: 'image/jpeg',
    icon: '',
    extension: ['jpe', 'jpeg', 'jpg']
  },
  {
    type: 'image/svg+xml',
    icon: '',
    extension: [ 'svg' ]
  },
  {
    type: 'image/bmp',
    icon: '',
    extension: [ 'bmp' ]
  },
  {
    type: 'video/mpeg',
    icon: '',
    extension: [ 'mp2', 'mpa', 'mpe', 'mpeg', 'mpg', 'mpv2' ]
  },
  {
    type: 'video/quicktime',
    icon: '',
    extension: [ 'mov', 'qt' ]
  },
  {
    type: 'video/x-msvideo',
    icon: '',
    extension: [ 'avi' ]
  },
  {
    type: 'video/x-sgi-movie',
    icon: '',
    extension: [ 'movie' ]
  },
  {
    type: 'application/msword',
    icon: '',
    extension: [ 'doc', 'dot' ]
  },
  {
    type: 'application/octet-stream',
    icon: '',
    extension: [ '*', 'bin', 'exe', 'class', 'dms', 'lha', 'lzh' ]
  },
  {
    type: 'application/pdf',
    icon: '',
    extension: [ 'pdf' ]
  },
  {
    type: 'application/postscript',
    icon: '',
    extension: [ 'ai', 'eps', 'ps' ]
  },
  {
    type: 'application/vnd.ms-excel',
    icon: '',
    extension: [ 'xls', 'xla', 'xlc', 'xlm', 'xlt', 'xlw' ]
  },
  {
    type: 'application/vnd.ms-powerpoint',
    icon: '',
    extension: [ 'pot', 'pps', 'ppt' ]
  },
  {
    type: 'application/vnd.ms-works',
    icon: '',
    extension: [ 'wcm', 'wdb', 'wks', 'wps' ]
  },
  {
    type: 'application/x-gzip',
    icon: '',
    extension: [ 'gz' ]
  },
  {
    type: 'audio/mpeg',
    icon: '',
    extension: [ 'mp3' ]
  }
]

export default {
  imgIcon: '',
  videoIcon: '',
  fileIcon: '',
  audioIcon: ''
}
